package cn.alone.org.domain;

import cn.alone.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 部门表格字段
 * @author lanan
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department extends BaseDomain {
    //部门编号
    private String sn;
    private String name;
    //上级部门Id路径
    private String dirPath;
    private Integer state;
    /**
     * 部门管理员ID  Employee表
     */
    private Long manager_id;
    private Employee manager;
    //上级部门
    private Long parent_id;
    private Department parent;
    /**
     * 二级部门
     */
    private List<Department> children = new ArrayList<>();


}
